package com.indusfo.spc.pojo;

import com.indusfo.spc.common.pojo.BasePojo;

import java.sql.Time;

/**
 * @author louk
 * @date 2019/10/17 9:54
 */
public class Classes extends BasePojo {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    //班次ID
    private Integer lClasses;
    //班次名称
    private String vcClasses;
    //开始时间
    private String dBtime;
    //结束时间
    private String dEtime;
    //说明
    private String vcRemark;
    //数据状态
    private Integer lDataState;
    //工位ID
    private Integer staId;

    private String staName;//工位名称

    private Integer lProductionLineId; // 产线id



    private String vcProductionLineName; // 产线名字
    //状态码翻译
    private String lDataStateName;

    //工作时长
    private Double workingHour;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Double getWorkingHour() {
        return workingHour;
    }

    public void setWorkingHour(Double workingHour) {
        this.workingHour = workingHour;
    }

    public Integer getlClasses() {
        return lClasses;
    }

    public void setlClasses(Integer lClasses) {
        this.lClasses = lClasses;
    }

    public String getVcClasses() {
        return vcClasses;
    }

    public void setVcClasses(String vcClasses) {
        this.vcClasses = vcClasses;
    }

    public String getdBtime() {
        return dBtime;
    }

    public void setdBtime(String dBtime) {
        this.dBtime = dBtime;
    }

    public String getdEtime() {
        return dEtime;
    }

    public void setdEtime(String dEtime) {
        this.dEtime = dEtime;
    }

    public String getVcRemark() {
        return vcRemark;
    }

    public void setVcRemark(String vcRemark) {
        this.vcRemark = vcRemark;
    }

    public Integer getlDataState() {
        return lDataState;
    }

    public void setlDataState(Integer lDataState) {
        this.lDataState = lDataState;
    }

    public Integer getStaId() {
        return staId;
    }

    public void setStaId(Integer staId) {
        this.staId = staId;
    }

    public String getlDataStateName() {
        Integer dataState = getlDataState();
        String lDataStateName ="";
        switch (dataState){
            case 1:
                lDataStateName = "启用";
                break;
            case 2:
                lDataStateName = "删除";
                break;
            case 3:
                lDataStateName = "停用";
                break;
        }
        return lDataStateName;
    }

    public void setlDataStateName(String lDataStateName) {
        this.lDataStateName = lDataStateName;
    }


    public String getStaName() {
        return staName;
    }

    public void setStaName(String staName) {
        this.staName = staName;
    }

    public Integer getlProductionLineId() {
        return lProductionLineId;
    }

    public void setlProductionLineId(Integer lProductionLineId) {
        this.lProductionLineId = lProductionLineId;
    }

    public String getVcProductionLineName() {
        return vcProductionLineName;
    }

    public void setVcProductionLineName(String vcProductionLineName) {
        this.vcProductionLineName = vcProductionLineName;
    }

    @Override
    public String toString() {
        return "Classes{" +
                "lClasses=" + lClasses +
                ", vcClasses='" + vcClasses + '\'' +
                ", dBtime=" + dBtime +
                ", dEtime=" + dEtime +
                ", vcRemark='" + vcRemark + '\'' +
                ", lDataState=" + lDataState +
                ", staId=" + staId +
                ", staName='" + staName + '\'' +
                ", lProductionLineId=" + lProductionLineId +
                ", vcProductionLineName='" + vcProductionLineName + '\'' +
                ", lDataStateName='" + lDataStateName + '\'' +
                ", workingHour=" + workingHour +
                '}';
    }

    public Classes() {
    }
    public Classes(String vcClasses, String dBtime, String vcProductionLineName, Double workingHour) {
        this.vcClasses = vcClasses;
        this.dBtime = dBtime;
        this.vcProductionLineName = vcProductionLineName;
        this.workingHour = workingHour;
    }
}
